/* 
 * File:   Iterator.cpp
 * Author: guilhermemg
 * 
 * Created on 28 de Agosto de 2011, 12:12
 */

#include "Iterator.h"

template<class T> Iterator<T>::Iterator(vector<T*> v)  {
    this->vect = v;
    this->pos = 0;
}

template<class T> Iterator<T>::~Iterator() {
}

template<class T> bool Iterator<T>::hasNext() {
    return pos == vect.size();
}

template<class T> T* Iterator<T>::next(){
    return vect.at(pos++);
}

template<class T> int Iterator<T>::getPosition() {
    return this->pos;
}
